package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

@Data
//数据表名
@TableName("ve_oa_work_rizhi")
//返回值变程对象本身
@Accessors(chain = true)
//重写toString方法
@EqualsAndHashCode(callSuper = false)
public class VeOaDiaryEntity {
    /**主键id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    //日记主题
    @Excel(name = "日记主题", width = 15)
    @ApiModelProperty(value = "日记主题")
    @TableField(value = "title_str")
    private String titleStr;

    //日记分类
    @Excel(name = "个人分类", width = 15)
    @ApiModelProperty(value = "个人分类")
    @TableField(value = "riji_type")
    private String rijiType;

    //日记内容
    @Excel(name = "日记内容", width = 15)
    @ApiModelProperty(value = "日记内容")
    @TableField(value = "riji_content")
    private String rijiContent;

    //创建时间
    @Excel(name = "记录时间", width = 15)
    @ApiModelProperty(value = "记录时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //创建人
    @Excel(name = "记录人", width = 15)
    @ApiModelProperty(value = "记录人")
    @TableField(value = "create_by")
    private String createBy;

    //修改时间
    @Excel(name = "修改时间", width = 15)
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //逻辑删除
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    //终端id
    @Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    @TableField(value = "terminalId")
    private Integer terminalId;
}
